<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理系统</title>
    <link rel="icon" href="/img/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/admin/project/free_list.css">
    <script src="/script/jquery-3.3.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/script/admin/user/list.js"></script>
    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-xs" lay-event="delete">删除</a>
    </script>
</head>
<body>
    <div class="layui-row">
        <div class="layui-form form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">账号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" id="name"  autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">笔名</label>
                    <div class="layui-input-inline">
                        <input type="text" name="author" id="author"  autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline layui-col-md-offset5">
                    <div class="layui-btn"  id="search" >搜索</div>
<!--                    <div class="layui-btn"  id="toAdd" >增加</div>-->
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row">
        <table class="layui-hide" id="data" lay-filter="dataTable"></table>
    </div>


<script id="statusTool" type="text/html">
    {{#  if(d.status == '0' && d.roleName == '管理员') { }}
    <input type="checkbox" name="switch" lay-skin="switch" disabled lay-filter="switchTest" checked="" >
    {{# }else if(d.status == '1' && d.roleName == '管理员'){  }}
    <input type="checkbox" name="switch" lay-skin="switch" disabled lay-filter="switchTest" >
    {{# }else if(d.status == '0' && d.roleName != '管理员'){  }}
    <input type="checkbox" name="switch" lay-skin="switch"  lay-filter="switchTest" checked="">
    {{# }else if(d.status == '1' && d.roleName != '管理员'){  }}
    <input type="checkbox" name="switch" lay-skin="switch"  lay-filter="switchTest" >
    {{# } }}
</script>
</body>
</html>